/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"8E117F72-A4BE-4B63-91FF-163346C3AE99"}
 */
function onShow(firstShow, event) {

//	elements.lbl_error.visible = false;
}

/**
 * Callback method when form is (re)loaded.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @private
 *
 * @properties={typeid:24,uuid:"BCA27210-2C81-4EA6-95D4-D1279D4BA3D6"}
 */
function onLoad(event) {


}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"90F9D2C4-E310-4D24-9E6B-B8401A7664F9"}
 */
function abrir_chat(event) {

	var win = application.createWindow(application.getUUID().toString(),JSWindow.DIALOG);
	win.resizable = false;
	win.storeBounds = false;
	win.undecorated = true;
	
	var anchura = controller.getWindow().getWidth();
	var altura = controller.getWindow().getHeight();
	win.setLocation(anchura,altura);
	win.show(forms['frm_adm_t700_chats']);
}
